<center>
<div style="width:600px; height:500px; border: #3C6 solid 2px;">
  <p style="color: #3C6"><strong>ĐĂNG KÝ TÀI KHOẢN</strong></p>
  <p style="color: #3C6">&nbsp;</p>
  <form id="frmdangky" name="frmdangky" method="post" action="xuly.php">
    <table id="bang2" width="536">
    <tr>
      <td width="161" height="29"><p><strong>Tài khoản:</strong></p></td>
      <td width="241"><label for="texttaikhoan"></label>
      <input style="width:200px" type="text" maxlength="32" name="texttaikhoan"  id="texttaikhoan" /></td>
    </tr>
    <tr>
      <td height="33"><p><strong>Mật khẩu:</strong></p></td>
      <td><label for="textmatkhau"></label>
      <input style="width:200px" type="password" pattern="{6,32}" name="textmatkhau" id="textmatkhau" /></td>
    </tr>
    <tr>
      <td height="25"><p><strong>Nhập lại mật khẩu:</strong></p></td>
      <td><label for="textcmatkhau"></label>
      <input style="width:200px" maxlength="32" type="password" name="textcmatkhau" id="textcmatkhau" /></td>
    </tr>
    <tr>
      <td height="33"><p><strong>Họ và tên:</strong></p></td>
      <td><label for="textten"></label>
      <input style="width:200px" type="text" maxlength="32" name="textten" id="textten" /></td>
    </tr>
    <tr>
      <td height="33"><p>
        <strong>Ngày sinh</strong></p></td>
      <td>
        <p>
        
        <?php
	$ngay = array(0=>"01",1=>"02",2=>"03",3=>"04",4=>"05",5=>"06",6=>"07",7=>"08",8=>"09",9=>"10",10=>"11",11=>"12",12=>"13",13=>"14",14=>"15",15=>"16",17=>"18",18=>"19",20=>"21",21=>"22",22=>"23",23=>"24",24=>"25",25=>"26",26=>"27",27=>"28",28=>"29",29=>"30",30=>"31");
	$nam = range(2015,1900);
	$thang =  array(0=>"01",1=>"02",2=>"03",3=>"04",4=>"05",5=>"06",6=>"07",7=>"08",8=>"09",9=>"10",10=>"11",11=>"12");

    ?>
          
        </p>
        
    	<select name="ngay">
    	<option style="width:50px"> Ngày</option>

        <?php
				foreach( $ngay as $k => $v){
				echo "<option value='{$v}'>".$v."</option>";
				}
        ?>
        </select>
   	
 
    	<select name="thang">
    	<option style="width:50px"> Tháng</option>

        <?php
				foreach( $thang as $k => $v){
				echo "<option value='{$v}'>".$v."</option>";
				}
        ?>
        </select>
   	
    
   
    
    	<select style="width:70px" name="nam">
    	<option> Năm</option>

        <?php
				foreach( $nam as $k => $v){
				echo "<option value='{$v}'>".$v."</option>";
				}
        ?>
        </select>
   	
  </td>
    </tr>
    <tr>
      <td height="28"><p><strong>Email:</strong></p></td>
      <td><label for="textemail"></label>
      <input style="width:200px" maxlength="32" type="text" name="textemail" id="textemail" /></td>
    </tr>
    <tr>
      <td height="36"><p><strong>Giới tính:</strong></p></td>
      <td><p>
        <label>
          <input style="width:auto" type="radio" name="gender" value="Nam" id="gender_0" />
          Nam</label>
  
        <label>
          <input style="width:auto" type="radio" name="gender" value="Nữ" id="gender_1" />
          Nữ</label>
        <br />
      </p></td>
    </tr>
    <tr>
  <td width="161" height="38" align="left"><strong>Mã xác nhận:</strong></td>
  <td>
   <input style="width:200px" type="text" name="txtCaptcha" maxlength="10" size="32" />
  </td>
  <td width="118">
   <img src="capcha.php" />
  </td>
 </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><input style=" float: right;width:100px; height:30px;background-color: #3C6; border-radius: 5px" type="submit" name="button" id="button" value="Đăng kí" /></td>
    </tr>
  </table>
</form>
</div></center>
